#pragma once

#include <string>
#include <vector>

typedef std::vector<std::string> Strings;

inline bool starts_with(const std::string &haystack, const std::string &needle)
{
    return haystack.substr(0, needle.size()) == needle;
}

inline bool ends_with(const std::string &haystack, const std::string &needle)
{
    return haystack.substr(
        haystack.size() - needle.size(), needle.size()
    ) == needle;
}
